import request from '@/utils/request'

export function getBankList(query) {
  return request({
    url: '/finance/bank/getList',
    method: 'post',
    data: query
  })
}
export function getBankUsableList(query) {
  return request({
    url: '/finance/bank/getAvailable',
    method: 'post',
    data: query
  })
}

export function getBankDetail(id) {
  return request({
    url: '/finance/bank/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveBank(id) {
  return request({
    url: '/finance/bank/save',
    method: 'post',
    data: id
  })
}

export function removeBankByID(id) {
  return request({
    url: '/finance/bank/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByBankID(id) {
  return request({
    url: '/finance/bank/change-status',
    method: 'post',
    data: id
  })
}

